home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / windows / wdj1096.zip / ZOLMAN.ZIP / DRAW.ZIP / DRAWCTL.H < prev    next >
C/C++ Source or Header  |  1996-05-22  |  2KB  |  73 lines

  1. // DrawCtl.h : Declaration of the CDrawCtrl OLE control class.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CDrawCtrl : See DrawCtl.cpp for implementation.
  5. class CMyParkingWnd;    
  6.  
  7. class CDrawCtrl : public COleControl
  8. {
  9.     DECLARE_DYNCREATE(CDrawCtrl)
  10.  
  11. protected:
  12.     CEdit            m_edEdit;
  13.     CButton            m_btnButton;
  14.     CMyParkingWnd    m_wndParkingWnd;
  15.  
  16. // Constructor
  17. public:
  18.     CDrawCtrl();
  19.  
  20. // Overrides
  21.  
  22.     // Drawing function
  23.     virtual void OnDraw(
  24.                 CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  25.  
  26.     // Persistence
  27.     virtual void DoPropExchange(CPropExchange* pPX);
  28.  
  29.     // Reset control state
  30.     virtual void OnResetState();
  31.  
  32. // Implementation
  33. protected:
  34.     ~CDrawCtrl();
  35.  
  36.     DECLARE_OLECREATE_EX(CDrawCtrl)    // Class factory and guid
  37.     DECLARE_OLETYPELIB(CDrawCtrl)      // GetTypeInfo
  38.     DECLARE_PROPPAGEIDS(CDrawCtrl)     // Property page IDs
  39.     DECLARE_OLECTLTYPE(CDrawCtrl)        // Type name and misc status
  40.  
  41. // Message maps
  42.     //{{AFX_MSG(CDrawCtrl)
  43.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  44.     afx_msg void OnSize(UINT nType, int cx, int cy);
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47.  
  48. // Dispatch maps
  49.     //{{AFX_DISPATCH(CDrawCtrl)
  50.         // NOTE - ClassWizard will add and remove member functions here.
  51.         //    DO NOT EDIT what you see in these blocks of generated code !
  52.     //}}AFX_DISPATCH
  53.     DECLARE_DISPATCH_MAP()
  54.  
  55.     afx_msg void AboutBox();
  56.  
  57. // Event maps
  58.     //{{AFX_EVENT(CDrawCtrl)
  59.         // NOTE - ClassWizard will add and remove member functions here.
  60.         //    DO NOT EDIT what you see in these blocks of generated code !
  61.     //}}AFX_EVENT
  62.     DECLARE_EVENT_MAP()
  63.  
  64. // Dispatch and event IDs
  65. public:
  66.     enum {
  67.     //{{AFX_DISP_ID(CDrawCtrl)
  68.         // NOTE: ClassWizard will add and remove enumeration elements here.
  69.         //    DO NOT EDIT what you see in these blocks of generated code !
  70.     //}}AFX_DISP_ID
  71.     };
  72. };
  73.